CONTENTS | INDEX | PREV | NEXT
 sleep

 NAME
  sleep - sleep for a period of time

 SYNOPSIS
  sleep(n);
  int n;

 FUNCTION
  The sleep() function waits for a period of time specified in seconds.
  sleep() can be interrupted by a ^C.

  NOTE: sleep's timekeeping is not very accurate.  On the Amiga,
  sleep() is implemented with a loop of Delay(50); calls.

 EXAMPLE
  #include <stdio.h>

  main(ac, av)
  char *av[];
  {
      puts("Sleeping for 10 seconds");
      sleep(10);
      puts("That was a good rest");
      return(0);
  }

 INPUTS
  int n;      number of seconds to sleep

 RESULTS
  none

 SEE ALSO